//
//  CourseCell.m
//  Four_Fit_New
//
//  Created by xalo on 16/7/14.
//  Copyright © 2016年 xmaz. All rights reserved.
//

#import "CourseCell.h"

@interface CourseCell ()
@property (weak, nonatomic) IBOutlet UIImageView *imageURL;
@property (weak, nonatomic) IBOutlet UILabel *planName;
@property (weak, nonatomic) IBOutlet UILabel *timeAndOther;
@property (weak, nonatomic) IBOutlet UILabel *numberOfParticipants;

@end

@implementation CourseCell

- (void)awakeFromNib {
    // Initialization code
}
- (void)setCellWithModel:(CourseModel *)model{
    [self.imageURL sd_setImageWithURL:[NSURL URLWithString:model.imageURL]];
    self.planName.text = model.planName;
    self.timeAndOther.text = [NSString stringWithFormat:@"%@分钟  %@千卡  初级",model.trainDuration ? model.trainDuration : @"0" , model.calorie ? model.calorie : @"0"];
    self.numberOfParticipants.text = [NSString stringWithFormat:@"%@人已参加",model.numberOfParticipants ? model.numberOfParticipants : @"0"];
}
@end
